<?php

namespace app\common\model;

use app\common\RootModel;

class MoneyRecordModel extends RootModel
{
    protected $pk = 'id';
    protected $table = 'sys_member_money_record';

    /**
     * 颜色
     * @var string[]
     */
    public static $color = ['#FFB800', 3 => '#1E9FFF'];

    /**
     * 货币类型
     * @var string[]
     */
    public static $currencyLabel = [0 => '金币', 3 => '钻石'];

    /**
     * 流水状态
     * @var string[]
     */
    public static $stateLabel = ['失败', '用户操作中', '系统转账中', '交易完成'];

    /**
     * 金币来源
     * @var array
     */
    public static $methodLabel = [
        0  => '签到',
        1  => '邀请码奖励',
        4  => '阅读文章',
        5  => '首页宝箱',
        6  => '金币气泡',
        7  => '双倍奖励',
        8  => '邀请好友',
        9  => '好友阅读7分钟',
        10 => '好友累计3天',
        11 => '新人专享',
        12 => '提现失败退回',
        13 => '幸运转盘',
        14 => '转盘任务',
        15 => '转盘宝箱',
        16 => '阅读任务',
        17 => '宝箱任务',
        18 => '提现任务',
        19 => '视频广告',
        20 => '点广告赚金币',
        21 => '看广告并试玩',
    ];

}